package com.jianbing.zuixia.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jianbing.zuixia.mapper.ZuixiaCheckpointRecordMapper;
import com.jianbing.zuixia.domain.ZuixiaCheckpointRecord;
import com.jianbing.zuixia.service.IZuixiaCheckpointRecordService;

/**
 * 闯关记录，记录用户的闯关信息Service业务层处理
 * 
 * @author windbless
 * @date 2024-06-18
 */
@Service
public class ZuixiaCheckpointRecordServiceImpl implements IZuixiaCheckpointRecordService 
{
    @Autowired
    private ZuixiaCheckpointRecordMapper zuixiaCheckpointRecordMapper;

    /**
     * 查询闯关记录，记录用户的闯关信息
     * 
     * @param recordId 闯关记录，记录用户的闯关信息主键
     * @return 闯关记录，记录用户的闯关信息
     */
    @Override
    public ZuixiaCheckpointRecord selectZuixiaCheckpointRecordByRecordId(Long recordId)
    {
        return zuixiaCheckpointRecordMapper.selectZuixiaCheckpointRecordByRecordId(recordId);
    }

    /**
     * 查询闯关记录，记录用户的闯关信息列表
     * 
     * @param zuixiaCheckpointRecord 闯关记录，记录用户的闯关信息
     * @return 闯关记录，记录用户的闯关信息
     */
    @Override
    public List<ZuixiaCheckpointRecord> selectZuixiaCheckpointRecordList(ZuixiaCheckpointRecord zuixiaCheckpointRecord)
    {
        return zuixiaCheckpointRecordMapper.selectZuixiaCheckpointRecordList(zuixiaCheckpointRecord);
    }

    /**
     * 新增闯关记录，记录用户的闯关信息
     * 
     * @param zuixiaCheckpointRecord 闯关记录，记录用户的闯关信息
     * @return 结果
     */
    @Override
    public int insertZuixiaCheckpointRecord(ZuixiaCheckpointRecord zuixiaCheckpointRecord)
    {
        return zuixiaCheckpointRecordMapper.insertZuixiaCheckpointRecord(zuixiaCheckpointRecord);
    }

    /**
     * 修改闯关记录，记录用户的闯关信息
     * 
     * @param zuixiaCheckpointRecord 闯关记录，记录用户的闯关信息
     * @return 结果
     */
    @Override
    public int updateZuixiaCheckpointRecord(ZuixiaCheckpointRecord zuixiaCheckpointRecord)
    {
        return zuixiaCheckpointRecordMapper.updateZuixiaCheckpointRecord(zuixiaCheckpointRecord);
    }

    /**
     * 批量删除闯关记录，记录用户的闯关信息
     * 
     * @param recordIds 需要删除的闯关记录，记录用户的闯关信息主键
     * @return 结果
     */
    @Override
    public int deleteZuixiaCheckpointRecordByRecordIds(Long[] recordIds)
    {
        return zuixiaCheckpointRecordMapper.deleteZuixiaCheckpointRecordByRecordIds(recordIds);
    }

    /**
     * 删除闯关记录，记录用户的闯关信息信息
     * 
     * @param recordId 闯关记录，记录用户的闯关信息主键
     * @return 结果
     */
    @Override
    public int deleteZuixiaCheckpointRecordByRecordId(Long recordId)
    {
        return zuixiaCheckpointRecordMapper.deleteZuixiaCheckpointRecordByRecordId(recordId);
    }
}
